﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BL;
using UI.Models;

namespace UI.Controllers
{
    public class DepartmentsController : Controller
    {
        //
        // GET: /Departments/

        public ActionResult Index(int inputVIPNumber)
        {
            
            DepartmentsRepository rep = new DepartmentsRepository();
            DeptListModel DeptList = new DeptListModel();
            DeptList.Departments = rep.GetList();
            DeptList.VIPNumber = inputVIPNumber;
            return View(DeptList);
        }

    }
}
